<%--
  Created by IntelliJ IDEA.
  User: zhulingfeng
  Date: 2020/7/29
  Time: 15:52
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <base href="<%=basePath%>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>
    <link rel="stylesheet" href="<%=basePath%>resource/css/pintuer.css">
    <link rel="stylesheet" href="<%=basePath%>resource/css/admin.css">
    <script src="<%=basePath%>resource/js/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="<%=basePath%>resource/images/y.jpg" class="radius-circle rotate-hover" height="50" alt=""/>华清教务管理系统
        </h1>
    </div>
    <div class="head-l"><a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span>
        前台首页</a> &nbsp;&nbsp;<a href="##" class="button button-little bg-blue"><span class="icon-wrench"></span>
        清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red" href="login.html"><span
            class="icon-power-off"></span> 退出登录</a></div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>

    <%--    <c:forEach items="${firstLvMenuList}" var="firstLvMenu">--%>
    <%--        <c:if test="${firstLvMenu.pId==1}">--%>
    <%--            <h2><span class="icon-user"></span>${firstLvMenu.name}</h2>--%>

    <%--            <c:forEach items="${menuLvMap }" var="menuLvMap">--%>
    <%--                <c:if test="${firstLvMenu.permissionId == menuLvMap.key}">--%>
    <%--                    <c:forEach items="${menuLvMap.value }" var="scdLvMenu">--%>
    <%--&lt;%&ndash;                        <ul style="display:block">&ndash;%&gt;--%>
    <%--                        <ul>--%>
    <%--                            <li><a href="<%=basePath%>${scdLvMenu.url}" target="right"><span--%>
    <%--                                    class="icon-caret-right"></span>${scdLvMenu.name}</a></li>--%>
    <%--                        </ul>--%>
    <%--                    </c:forEach>--%>
    <%--                </c:if>--%>
    <%--            </c:forEach>--%>

    <%--        </c:if>--%>
    <%--    </c:forEach>--%>
    <c:forEach items="${firstLvMenuList }" var="firstLvMenu">
        <c:if test="${firstLvMenu.pId==1}">
            <h2>
                <span class="icon-user"></span>${firstLvMenu.name  }</h2>
            <ul >
                <c:forEach items="${menuLvMap }" var="menuLvMap">
                    <c:if test="${firstLvMenu.permissionId == menuLvMap.key}">
                        <c:forEach items="${menuLvMap.value }" var="scdLvMenu">
                            <li><a href="<%=basePath%>${scdLvMenu.url }"
                                   target="right"><span class="icon-caret-right"></span>${scdLvMenu.name }</a></li>
                        </c:forEach>
                    </c:if>
                </c:forEach>
            </ul>
        </c:if>
    </c:forEach>

</div>
<script type="text/javascript">
    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="{:U('Index/info')}" target="right" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</php></span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a></li>
</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" src="<%=basePath%>view/frame/info.jsp" name="right" width="100%"
            height="100%"></iframe>
</div>
<div style="text-align:center;">
    <p>来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>
</body>
</html>